package com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface UsersDao {
	public Map<String, Object> query(@Param("account") String account);

	public void add(@Param("account") String account,
			@Param("password") String password,
			@Param("nickname") String nickname,
			@Param("reg_date") String reg_date);

	public Map<String, Object> queryone(@Param("account") String account,
			@Param("password") String password);

	public Map<String, Object> querynickname(@Param("id") String id);

	public List<Map> queryjiaoyi(@Param("date_time") String date_time,
			@Param("id") String id);

	public Map<String, Object> queryjiaoyizh(@Param("user_id") String user_id);

	public List<Map> queryzuijinjiaoyi(@Param("user_id") String user_id);

	public List<Map> queryzuijinjiaoyizc(@Param("user_id") String user_id);

	public void save(@Param("money_in") String money_in,
			@Param("kind") String kind, @Param("place") String place,
			@Param("remark") String remark,
			@Param("date_time") String date_time,
			@Param("user_id") String user_id);

	public void savezichu(@Param("money_out") String money_out,
			@Param("kind") String kind, @Param("place") String place,
			@Param("remark") String remark,
			@Param("date_time") String date_time,
			@Param("user_id") String user_id);

	public void zcsr(@Param("money_in") String money_in,
			@Param("money_out") String money_out, @Param("kind") String kind,
			@Param("place") String place, @Param("remark") String remark,
			@Param("date_time") String date_time,
			@Param("user_id") String user_id);

	public Map<String, Object> lastId();
}
